import java.util.Scanner ;

public class hour 

{
public static void main (String[] args) 
{
int A,B,C ;

double D ;

Scanner in = new Scanner (System.in) ;

//A = in .nextInt();
System.out.print ( "hour:");

A = in .nextInt();
//A = in .nextInt();


System.out.print ("minute:");

B = in.nextInt();

System.out.print ("second:");


C = in.nextInt();

D =A*60*60 + B*60 + C ;

System.out.println ("second All:"+ D   );

}
}





























